package online.heycm.rbac.domain.basic.repository.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据字典
 *
 * @author heycm
 * @since 2024-01-11
 */
@Data
@TableName("basic_dictionary")
public class BasicDictionary implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字典ID
     */
    @TableId(value = "dic_id", type = IdType.AUTO)
    private Integer dicId;

    /**
     * 字典别名
     */
    private String dicAlias;

    /**
     * 字段表
     */
    private String dicTable;

    /**
     * 字典列
     */
    private String dicColumn;

    /**
     * 字典列值
     */
    private String dicValue;

    /**
     * 字典语义
     */
    private String dicEnum;

    /**
     * 字典说明
     */
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;
}
